package main

import (
	"fmt"
	"goTestToMod/redis_cache/domain/amount_cache"
)

func main(){
	testcaseRecord, resetSuitids, err := amount_cache.GetAmountCacheInstance().
		GetCacheByIds([]string{"1", "2", "3"})
	if err != nil {
		panic(err)
	}
	fmt.Println(testcaseRecord, resetSuitids)
	err = amount_cache.GetAmountCacheInstance().
		DeleteCacheByIds([]string{"4"})
	if err != nil {
		panic(err)
	}
	fmt.Println(err)
	//err = amount_cache.GetAmountCacheInstance().
	//	SetCacheById("1", 1)
	//if err != nil {
	//	panic(err)
	//}
	//for i:=0; i<1; i++ {
	//	testcaseRecord, resetSuitids, err = amount_cache.GetAmountCacheInstance().
	//		GetCacheByIds([]string{"1", "2", "3"})
	//	if err != nil {
	//		panic(err)
	//	}
	//}
	//fmt.Println(testcaseRecord, resetSuitids)
	//per, _ := amount_cache.GetAmountCacheInstance().GetStatisticsMatchPercentage()
	//fmt.Println(per)
	//err = amount_cache.GetAmountCacheInstance().
	//	DeleteCacheByIds([]string{"1"})
	//if err != nil {
	//	panic(err)
	//}
	//testcaseRecord, resetSuitids, err = amount_cache.GetAmountCacheInstance().
	//	GetCacheByIds([]string{"1", "2", "3"})
	//if err != nil {
	//	panic(err)
	//}
	//fmt.Println(testcaseRecord, resetSuitids)
}